mxc_spi: Round up clock divider
authorBenoît Thébaudeau <[email protected]>
Fri, 10 Aug 2012 08:51:50 +0000 (08:51 +0000)
committerAlbert ARIBAUD <[email protected]>
Sat, 1 Sep 2012 12:58:25 +0000 (14:58 +0200)
commitcd2004037c01be34ebd61f49755fd252d03131aa
treeacbb26cfa8437894fba7a03ced61ef8dea2b6a92
parent78befb695d0b28d9888fe5dee27dc80b24eac1c9
mxc_spi: Round up clock divider

Since the input frequency of the API is a maximum that should not be exceeded in
order for the devices to operate properly, the SPI clock divider should be
rounded up, not truncated.

Signed-off-by: Benoît Thébaudeau <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Stefano Babic <[email protected]>
Acked-by: Stefano Babic <[email protected]>
drivers/spi/mxc_spi.c